<?php

// Load Elgg engine
include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");

// make sure only logged in users can see this page
gatekeeper();
// set context to add a "cancel" option
elgg_set_context('resumes_form');

//set_page_owner(get_loggedin_user()->getGUID());
elgg_set_page_owner_guid($_SESSION['user']->guid);

// set the title
$title = elgg_echo('resume:add:research');

// start building the main column of the page
$content = elgg_view_title($title);

// add the form to this section
$content .= elgg_view_form("resume/addresearch");

// optionally, add the content for the sidebar
$sidebar = "";

// layout the page
$body = elgg_view_layout('one_sidebar', array(
		'content' => $content,
		'sidebar' => $sidebar
));

// draw the page
echo elgg_view_page($title, $body);
?>